import apis from "@/api/apis.js";
export default{
	namespaced: true,
	state:{
		SeniorityData:[],
		fundIdData:[],
	},
	getters: {},
	mutations:{
		setSelectallData(state,newdata){
			state.SeniorityData=newdata
			console.log(state.SeniorityData)
		},
		
		setFundIdData(state,newdata){
			state.fundIdData=newdata
		}
	},
	actions:{
		async getSeniority(context,itemData){
			let data =await apis.seniority.getSelectal(itemData)
			if(data.code==200){
				context.commit("setSelectallData",data.data.list);
			};
			
		},
		async getFund(context,select){
			let data = await apis.seniority.getFundById(select);
			if(data.code==200){
				context.commit("setFundIdData",data.data);
			}
		}
	},
	modules:{}
}